package com.csw.minDiskFile.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.csw.minDiskFile.entity.Folder;
import com.csw.minDiskFile.entity.User;

/**
 * @author 1
 */
@Mapper
public interface FolderDao {
	public void addFolder(Folder folder);

	public void addRootFolder(User user);

	public List<Folder> selectFolderListByFolderId(Integer folderId);

	public Folder selectRootFolderByUserId(Integer userId);

	public Folder selectFolderById(Integer folderId);

	public Folder selectFatherFolderById(Integer folderId);

	public void deleteFolderById(Integer id);

	public List<Folder> selectAllFolderByFatherFolder(Folder fatherFolder);
}
